package com.ethan.springclod.api.api;

import com.ethan.springclod.api.vo.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author daifei
 * @date 2019/4/17
 */
@RequestMapping("refact")
public interface HelloServiceApi {


    @RequestMapping("hello1")
    String hello1(@RequestParam String name);

    @PostMapping("hello2")
    String hello2(@RequestBody User user);

}
